package z.explorer.ui.component.statusbar;

import java.awt.ComponentOrientation;
import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.*;
import javax.swing.plaf.basic.BasicSeparatorUI;


public class ZStatusBar extends JToolBar {

	private static final long serialVersionUID = -3533588174208400198L;
	
	private JLabel status = new JLabel("ok");
	private JLabel time = new JLabel("time");
	private JProgressBar proBar = new JProgressBar();
	ProgressMonitor pm;
	
	public ZStatusBar(){
//		setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		
//		JSeparator sep = new JSeparator();
//		BasicSeparatorUI.createUI(sep).installUI(sep);
//		sep.setBorder(BorderFactory.createEtchedBorder());
//		add(sep);
//		JToolBar tb= new JToolBar();
//		tb.add(status);
//		tb.setPreferredSize(status.getSize());
		setLayout(new FlowLayout(FlowLayout.RIGHT));
		add(status);
//		Separation;
		addSeparator(new Dimension(2,15));
//		JToolBar tb1 = new JToolBar();
//		tb1.setPreferredSize(time.getSize());
//		tb1.add(time);
		add(time);
	}

}
